﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GlxRRSDB.Utils;

namespace GlxRRSDB.Data
{
    public class WeeklyReportData
    {
        public DateTime CurrentDate;
        public int CinemaID;
        public string CinemaName;
        public int FilmID;
        public string FilmTitle;

        public long SumWeekAdmission;
        public long SumWeekBO;
        public DateTime StartDate;
        public DateTime FinishDate;

        public int WeeksInPlay
        {
            get
            {
                int s = StartDate.CurrentWeekNumber();
                DateTime e = (DateTime.Now > FinishDate) ? FinishDate : DateTime.Now;
                int f = e.CurrentWeekNumber();
                return f - s + 1;
            }
        }
    }
}
